﻿using Model;
using FairyGUI;

namespace Hotfix
{
    [UIViewAttribute(UIViewType.Loading)]
    public class LoadingView:UIView
    {
        public override string PackageName => "loadingUI";
        public override string ViewName => "LoadingView";

        public bool IsLoadFinish = true;

        public override void Create()
        {
            if (IsLoadFinish)
            {
                //int t = (int)UIViewType.Main;
            }
        }
        public override void OnEnter()
        {
            object[] obj = ParamsHelper.GetObj(1);
            obj[0] = (int)UIViewType.Main;
            GameRoot.DispatcherSystem.Run(EventType.UIViewChange,null, obj);
        }
    }
}
